As this is the very first exercise in this workshop it is quite easy and short. Its purpose is also to get used to this exercise format and, more importantly, to get a first feeling for working with R and RStudio.
Note: You can find the solutions for this exercise as well as all other exercises in the solutions folder in the repo/directory that contains the course materials. You can copy code from these exercise files by clicking on the small blue clipboard icon in the upper right corner of the code boxes.
The first thing we would like you to do in this exercise is to explore the RStudio interface a bit. Just “have a look around” and see, if you can find the elements and options we have discussed so far.
After you have made yourself a bit familiar with the RStudio interface, start using the console interactively by entering and executing the following simple calculations:
21 * 2
2^3
15/3
Feel free to play around a bit and try a few things out.
the_answer and then print the object to the console.
<- for this.
Also have a look at the Environment tab in the RStudio interface. The object you created should now be visible there.
grep() function. How many required arguments does it have?